<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>系统</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <#include "../css.jsp" parse=true encoding="utf-8">
</head>
<body>
<div class="page-group">
    <div class="page page-current">
        <header class="bar bar-nav">
            <a href="#" data-popover=".popover-links" class=" icon icon-me pull-right"></a>
            <h1 class="title">${user.nickName!''}</h1>
        </header>
        <nav class="bar bar-tab">
            <#list menmuList as menu>
            <#if (menu.httpUrl)??>
            <a class="tab-item active" href="${menu.httpUrl}">
                <span class="${menu.iconStyle}"></span>
                <span class="tab-label">${menu.menuName}</span>
            </a>
            <#else>
            <a class="tab-item active" onclick="showSecondMenu('${menu.id}');" href="#">
                <span class="${menu.iconStyle}"></span>
                <span class="tab-label">${menu.menuName}</span>
            </a>
        </#if>
    </#list>
    </nav>
        <div class="content">
            <div class="swiper-container swiper-container-horizontal" data-space-between="10" data-pagination=".swiper-pagination" data-loop="true">
                <div class="swiper-wrapper" style="transform: translate3d(-5739px, 0px, 0px); transition-duration: 0ms;"><div class="swiper-slide swiper-slide-duplicate" data-swiper-slide-index="2" style="width: 1903px; margin-right: 10px;"><img src="http://gqianniu.alicdn.com/bao/uploaded/i4//tfscom/i1/TB1kQI3HpXXXXbSXFXXXXXXXXXX_!!0-item_pic.jpg_640x640q60.jpg" alt="" style="width: 100%"></div>
                    <div class="swiper-slide" data-swiper-slide-index="0" style="width: 1903px; margin-right: 10px;"><img src="http://gqianniu.alicdn.com/bao/uploaded/i4//tfscom/i1/TB1n3rZHFXXXXX9XFXXXXXXXXXX_!!0-item_pic.jpg_640x640q60.jpg" alt="" style="width: 100%"></div>
                    <div class="swiper-slide swiper-slide-prev" data-swiper-slide-index="1" style="width: 1903px; margin-right: 10px;"><img src="http://gqianniu.alicdn.com/bao/uploaded/i4//tfscom/i4/TB10rkPGVXXXXXGapXXXXXXXXXX_!!0-item_pic.jpg_640x640q60.jpg" alt="" style="width: 100%"></div>
                    <div class="swiper-slide swiper-slide-active" data-swiper-slide-index="2" style="width: 1903px; margin-right: 10px;"><img src="http://gqianniu.alicdn.com/bao/uploaded/i4//tfscom/i1/TB1kQI3HpXXXXbSXFXXXXXXXXXX_!!0-item_pic.jpg_640x640q60.jpg" alt="" style="width: 100%"></div>
                    <div class="swiper-slide swiper-slide-duplicate swiper-slide-next" data-swiper-slide-index="0" style="width: 1903px; margin-right: 10px;"><img src="http://gqianniu.alicdn.com/bao/uploaded/i4//tfscom/i1/TB1n3rZHFXXXXX9XFXXXXXXXXXX_!!0-item_pic.jpg_640x640q60.jpg" alt="" style="width: 100%"></div></div>
                <div class="swiper-pagination swiper-pagination-bullets"><span class="swiper-pagination-bullet"></span><span class="swiper-pagination-bullet"></span><span class="swiper-pagination-bullet swiper-pagination-bullet-active"></span></div>
            </div>

        </div>
    </div>
    <#include "../js.jsp" parse=true encoding="utf-8">
    <script>
        function showSecondMenu(parentId) {
            if (parentId == "") {
                return false;
            } else {
                $.ajax(
                    {
                        type: "POST",//方法类型
                        dataType: "json",
                        url: "/home/getSecondMenuList",
                        data: {
                            parentId: parentId
                        },
                        success: function (result) {
                            if (result.code == 200) {
                                var groups = [];
                                $.each(result.data, function (index, item) {
                                    var textName = item.menuName;
                                    var httpUrl = item.httpUrl;
                                    var btnItem_index = [{
                                        text: textName,
                                        bold: true,
                                        color: 'Usual',
                                        onClick: function () {
                                            location.href = httpUrl;
                                        }
                                    }];
                                    groups.push(btnItem_index);
                                });
                                if (groups.length > 0) {
                                    $.actions(groups);
                                }
                            } else {
                                alert("系统异常！");
                            }
                        },
                        error: function () {
                            alert("系统异常！");
                        }
                    }
                );
            }
        }

        //用户信息管理
        function userMenu() {
            alert("操作");
        }
    </script>
</body>
</html>